<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <link rel="stylesheet" href="__STATIC__/my/css/style.css">
  <link rel="stylesheet" href="__STATIC__/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
<FORM method="post" id="form" data-auto="true">
  <div class="materialContainer">
    <div class="box">
      <div class="title">登录</div>
      <div class="input">
        <input type="text" name="name" id="name" placeholder="用户名">
        <span class="spin"></span>
      </div>
      <div class="input">
        <input type="password" name="pwd" id="pass" placeholder="密码" placeholder="密码">
        <span class="spin"></span>
      </div>
      <input type="hidden" name="__token__" value="{$Request.token}" />
      <div class="button login">
        <button onclick="login()">
          <span>登录</span>
          <i class="fa fa-check"></i>
        </button>
      </div>
      <div class="button login">
        <button onclick="reg()">
          <span>注册</span>
          <i class="fa fa-check"></i>
        </button>
      </div>
    </div>

  </div>
  <!--    昵 称：<input type="text" name="name"><br/>-->
  <!--    密码：<input type="password" name="pwd"><br/>-->
  <!--    <input type="hidden" name="__token__" value="{$Request.token}" />-->
  <!--    <input type="submit" value=" 提交 ">-->
</FORM>
<!--<a href="{:url('message_board/index/reg')}">注册</a>-->
</body>
<script>
  function login(){
    var e = document.getElementById('form');
    e.action = "{:url('doLogin')}";
    e.submit();
  }
  function reg(){
    var e = document.getElementById('form');
    e.action = "{:url('userRegister')}";
    e.submit();
  }
</script>
</html>